package com.yuncheng.oaApi.mapper;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.yuncheng.oaApi.entity.OaHysgl;
import com.yuncheng.oaApi.vo.OaHysglVo;
import com.yuncheng.vo.*;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
public interface OaHysglFlowMapper {
    Page<OaHysglVo> flowJobPage(Page<OaHysglVo> page,
                                @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                @Param("user") CurrentUserVo user,
                                @Param("spcyFlowVo") OaHysglVo oaHysglVo);

    Page<OaHysglVo> flowJkPage(Page<OaHysglVo> page,
                               @Param("onlyCurrentUser") boolean onlyCurrentUser,
                               @Param("user") CurrentUserVo user,
                               @Param("spcyFlowVo") OaHysglVo oaHysglVo);

    List<OaHysgl> getnrlist(String fhydd, String fhykssj);

    List<OaHysglVo> flowJkList(
            @Param("onlyCurrentUser") boolean onlyCurrentUser,
            @Param("user") CurrentUserVo user,
            @Param("spcyFlowVo") OaHysglVo oaHysglVo);

    Page<OaHysglVo> selectmyyb(Page<OaHysglVo> page,
                               @Param("spcyFlowVo") OaHysglVo oaHysglVo, String fdbrid);

    Page<OaHysglVo> myYbFlowPage(Page<OaHysglVo> page,
                                 @Param("onlyCurrentUser") boolean onlyCurrentUser,
                                 @Param("user") CurrentUserVo user,
                                 @Param("spcyFlowVo") OaHysglVo oaHysglVo);
}
